﻿       <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">

          <h2>账号管理</h2>
          <div class="row group-control">
       <div class="col-md-1">  
<button type="button" class="btn btn-default" data-toggle="modal" data-target="#myModal"><span class="glyphicon glyphicon-plus"></span>添加
</button></div>

<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
        <h4 class="modal-title" id="myModalLabel">添加账号</h4>
      </div><!-- /.modal-header -->
      <form name = "userInsertForm" id = "userInsertForm">
      <div class="modal-body">
                    <div class= "row form-group"><div class="col-md-12"><label class="control-label">账号名</label></div></div>
                    <div class= "row form-group"><div class="col-md-12"><input class="form-control" placeholder=userId name="userId"></div></div> 
                    <div class= "row form-group"><div class="col-md-12"><label class="control-label">密码</label></div></div>
                    <div class= "row form-group"><div class="col-md-12"><input class="form-control" placeholder=userPass name="userPass"></div></div> 
                    <div class= "row form-group"><div class="col-md-12"><label class="control-label">姓名</label></div></div>
                    <div class= "row form-group"><div class="col-md-12"><input class="form-control" placeholder="userName" name="userName"></div></div> 
                    <div class= "row form-group"><div class="col-md-12"><label class="control-label">权限</label></div></div>
                    <div class="row form-group">
                    <div class="col-md-3"> 办公室主任 </div>
                    <div class="col-md-1"><input type="checkbox" name="userPermission" value="111"> </div>
                    <div class="col-md-3"> 办公室成员 </div>
                    <div class="col-md-1"><input type="checkbox" name="userPermission" value="112"> </div>
                    </div>
                    
      </div><!-- /.modal-body -->
				      <div class="modal-footer">
				        <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
				        <button type="button" class="btn btn-default" data-dismiss="modal"  ng-click="insertUser()">确认提交</button>

				      

				      
				      </div><!-- /.modal-footer -->
                  </form>
      </div><!-- /.modal-content -->

    </div><!-- /.modal-dialog -->
  </div><!-- /.myModal -->
   
   
   
   

            <div class="col-md-1"><button type="button" class="btn btn-default " id="btnUploadFile"><span class="glyphicon glyphicon-plus"></span>上传</button>
          </div>
 
          <div class="col-md-1"><button type="button" class="btn btn-default " id="del_mode" ng-click="deleteUser()"><span class="glyphicon glyphicon-remove"></span>批量删除</button>
          </div>
          <div class="col-md-6"></div>
          <div class="col-md-1"><button type="button" class="btn btn-default" ><span class="glyphicon glyphicon-search"></span>搜索</button></div>
          <div class="col-md-3"><input class="form-control"></div>
          
          </div>
          <h2 class="sub-header"></h2>
          <div class="table-responsive" ng-controller="checkController">
            <table class="table table-striped">
              <thead>
                <tr>
                  <th><input type="checkbox" name="slectAll" id="selectAllAccount" ng-click="checkAllAccount()"></th>
                  <th>账号名</th>
                  <th>姓名</th>
                  <th>权限</th>
                  <th>上次登录时间</th>
                  <th>操作</th>
                </tr>
              </thead>
              <tbody>

	                <tr ng-repeat= "item in beanList">
	                  <td><input type="checkbox" name="userbox" value="{{item.userId}}"></td>
	                  <td><a href="#" ng-click="getUserInfo(item)">{{ item.userId }}</a></td>
	                  <td>{{ item.userName }}</td>
	                  <td>{{ item.userPermission }}</td> 
	                  <td>{{ item.userLoginTime }}</td>
	                  <td><a href="#" ng-click="deleteUser(item.userId)">删除</a>
	                </tr>  
                
              </tbody>
              
            
            </table>

              <ul class="pagination navbar-right">
                  <li><a href="#" ng-click = "pageAccountManagement( accountManagementPage - 1)">&laquo;</a></li>
                  <li><a href="#"> {{ accountManagementPage }} </a></li>
                   <li><a href="#" ng-click = "pageAccountManagement( accountManagementPage + 1 )">&raquo;</a></li>
              </ul>
          </div>
        </div>
